/*
 * @Author: 李天惊 uf_lee@163.com
 * @Date: 2022-09-15 09:47:48
 * @LastEditors: 李天惊 uf_lee@163.com
 * @LastEditTime: 2023-08-04 13:48:55
 * @FilePath: \zhmc\pc\sys\src\api\uc\orgRole\index.ts
 * Copyright (c) 2022 by 李天惊 uf_lee@163.com, All Rights Reserved.
 */
import { useAxios } from '@/hooks/web/useAxios'
const request = useAxios()

import { useCache } from '@/hooks/web/useCache'
const { wsCache } = useCache()

// 组织角色列表
export const ucOrgRoleListAdminApi = (data: any) => {
  return request.post({
    url: 'index.php/api/common',
    headers: { token: wsCache.get('token') },
    data: {
      code: 'ucOrgRoleListAdmin',
      data: data
    }
  })
}

// 组织角色新增
export const ucOrgRoleAddAdminApi = (data: any) => {
  return request.post({
    url: 'index.php/api/common',
    headers: { token: wsCache.get('token') },
    data: {
      code: 'ucOrgRoleAddAdmin',
      data: data
    }
  })
}
